package com.kstech.mp3604.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey


/**
 * 控制器初始化参数
 * 比如 2100	 0	口1长度	1mm	4bytes
 * address=2100
 * index=0
 * name=口1长度
 * unit=1mm
 * value=???
 */
@Entity(tableName = "initConfig")
data class ControlInitData(

    @ColumnInfo(name = "address") val address: String,
    @ColumnInfo(name = "sIndex") val sIndex: Int,
    @ColumnInfo(name = "name") val name: String,
    @ColumnInfo(name = "value") val value: Int,
    @ColumnInfo(name = "unit") val unit: String = "",
    @PrimaryKey(autoGenerate = true) var id: Int = 0,
)